.home-page {
  .home-banner {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    .banner-item {
      position: relative;
      height: 400px;
      display: flex;
      align-items: center;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

      .banner-content {
        flex: 1;
        padding: 0 48px;
        color: #fff;
        z-index: 2;

        h2 {
          font-size: 36px;
          font-weight: 700;
          margin-bottom: 16px;
          color: #fff;
        }

        p {
          font-size: 18px;
          margin-bottom: 24px;
          opacity: 0.9;
        }

        .ant-btn {
          height: 48px;
          padding: 0 32px;
          font-size: 16px;
          border-radius: 24px;
        }
      }

      .banner-image {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          max-width: 100%;
          max-height: 100%;
          object-fit: cover;
        }
      }
    }
  }

  .home-content {
    .stats-section {
      margin-bottom: 32px;

      .ant-card {
        text-align: center;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s, box-shadow 0.3s;

        &:hover {
          transform: translateY(-4px);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
      }
    }

    .featured-courses {
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .ant-card-head {
        border-bottom: 1px solid #f0f0f0;
      }

      .course-cover {
        position: relative;
        height: 200px;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s;
        }

        .course-overlay {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: rgba(0, 0, 0, 0.4);
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          transition: opacity 0.3s;

          .anticon {
            font-size: 48px;
            color: #fff;
          }
        }
      }

      .ant-card:hover {
        .course-cover {
          img {
            transform: scale(1.05);
          }

          .course-overlay {
            opacity: 1;
          }
        }
      }

      .course-description {
        color: #666;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .course-meta {
        display: flex;
        gap: 16px;
        margin-bottom: 12px;
        color: #999;
        font-size: 12px;

        span {
          display: flex;
          align-items: center;
          gap: 4px;
        }
      }

      .course-price {
        display: flex;
        align-items: center;
        gap: 8px;

        .price {
          font-size: 18px;
          font-weight: 600;
          color: #f5222d;
        }

        .original-price {
          font-size: 14px;
          color: #999;
          text-decoration: line-through;
        }
      }
    }

    .live-streams {
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .ant-card-head {
        border-bottom: 1px solid #f0f0f0;
      }

      .ant-list-item {
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;

        &:last-child {
          border-bottom: none;
        }

        .ant-list-item-meta-title {
          margin-bottom: 8px;
        }

        .ant-list-item-meta-description {
          p {
            margin-bottom: 4px;
            color: #666;
          }
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .home-page {
    .home-banner {
      .banner-item {
        height: 300px;
        flex-direction: column;
        text-align: center;

        .banner-content {
          padding: 24px;
          order: 2;

          h2 {
            font-size: 24px;
          }

          p {
            font-size: 14px;
          }
        }

        .banner-image {
          order: 1;
          height: 150px;
        }
      }
    }

    .home-content {
      .stats-section {
        .ant-col {
          margin-bottom: 16px;
        }
      }
    }
  }
} 